from django.db import models
from common.base_model import BaseModel


class Shop(BaseModel):
    id = models.AutoField(primary_key=True)
    name = models.CharField(verbose_name='商铺名称', max_length=256, default='')
    docs = models.TextField(verbose_name='商铺描述', max_length=256, default='', null=True, blank=True)
    phone = models.CharField(verbose_name='商铺电话', max_length=20)
    wechat = models.CharField(verbose_name='微信', max_length=256, default='')

    def __str__(self):
        return str(self.id)+str(self.name)

    class Meta:
        verbose_name_plural = '商铺'
        db_table = 'tb_shop'

